signup and login both connected to database