fixed login and registration routes