Correct login view to post request