Register and login functionality added.