added register, log in and log out, and fixed forms