login and signup with error msg