def fix login and registration
fix registration and query