fixed login and register view