added login and register form