Implemented user login action log to database.