Modified MySql login