Add Hash function
Add magic method call to backend repository
Add isLoggedIn session auth check