login functionality

working on login functionality