path fixes for login form and register form