Adding auth via database
Getting logged in user
Updating sec