Changing login method to POST