added ability to log in from the front end by checking the data against ...

...the server, fixed the local storage for retrieving and storing user data