     forms.clearFormAlerts($form)
     enteredEmailOrUsername = $form.find('input[name="emailOrUsername"]').val()
     enteredPassword = $form.find('input[name="password"]').val()
-    if enteredEmailOrUsername and enteredEmailOrUsername in [me.get('email'), me.get('name')]
+    if enteredEmailOrUsername and enteredEmailOrUsername in [@user.get('email'), @user.get('name')]
       isPasswordCorrect = false
       toBeDelayed = true
       $.ajax


  grabOtherData: ->
    @$el.find('#name-input').val @suggestedName if @suggestedName
    me.set 'name', @$el.find('#name-input').val()
    me.set 'firstName', @$el.find('#first-name-input').val()
    me.set 'lastName', @$el.find('#last-name-input').val()
    me.set 'email', @$el.find('#email').val()
    for emailName, enabled of @getSubscriptions()
      me.setEmailSubscription emailName, enabled

    me.set('photoURL', @$el.find('#photoURL').val())

    permissions = []


    onSaved = (uploadingPath) =>
      @$el.find('#photoURL').val(uploadingPath)
      @$el.find('#photoURL').trigger('change') # cause for some reason editing the value doesn't trigger the jquery event
      @user.set('photoURL', uploadingPath)
      photoContainer.removeClass('saving').attr('src', @user.getPhotoURL(photoContainer.width()))
    filepicker.pick {mimetypes: 'image/*'}, @onImageChosen(onSaving, onSaved)

  formatImagePostData: (inkBlob) ->
