Refactored currentUser into an implicit