Login Query/Log

Created a query for the login function and added the log action
functionality.