Working register, login and logout forms