fix logout button
Add relations
Credential login validation