         Notifications.findByUser(Users.currentUser())
         
     inputGroupIfEdited: ->
-        if UserEmail.isEdited()
+        if UserEmail().isEdited()
             "input-group"
         else
             ""
             
     isEdited: ->
-        UserEmail.isEdited()
+        UserEmail().isEdited()
         
     glyphClass: ->
-        UserEmail.glyphClass()
+        UserEmail().glyphClass()
         
     comment: ->
-        UserEmail.comment()
+        UserEmail().comment()
 
     needVerificationLink: ->
-        UserEmail.needVerificationLink()+        UserEmail().needVerificationLink()
UserEmailEdited =
    isEdited: ->
        true

    needVerificationLink: ->
        false

UserEmail = ->
    if (Users.currentUser()?.emails?.length?) and (Users.currentUser().emails.length > 0)
        email = Users.currentUser().emails[0]
    else
        email = {address: "", verified: undefined}
    currentEmailEdited = Session.get("currentEmailEdited")
    if currentEmailEdited and (currentEmailEdited != email.address)
        UserEmailEdited
    else
        if email.address == ""
            UserEmailAbsent
        else
            if email.verified
                UserEmailVerified
            else UserEmailNonVerified

Template.userSettings.helpers
    reviewCount: -> 
