core login functionality working