added login and register views