Hey Either send every values to refill fields after the page refresh, or use an ajax request instead of a standard submit. It sends a request to the server without refreshing the page, so you have to define a javascript function to be executed when the response comes back. This function is most likely to modify the dom tree of your page to give some sort of result, at least hide the login form.
Hope it helps.