Improved login and registration modules