updated database connectivity with login page