registration, login update

login and other functionalities added - needs to be cleaned up