add login functionality, half way done.