Use post method for login