prevent page reload
register, logout and http functions
register, logout routes
logout function
login, register, logout handlers
register form