add method for login post