User Login and Registration added / Some code improvements