fixing the database name option
improving the sign-in functionality