fix login and register form actions