fixed login and signup with availability check