post request for login and signup