register functionality added, begin of login functionality