login and register form fixes