rewrote the views and template for login and registration