add post method to login form