got login functionality working