Changed method to post on login page