added register and log in functions