Fix login error
Fix login error

see #127 and #138

lahmizzar/owncloud,amirshaikh49/owncloud,Fmstrat/owncloud,mhtranbn/owncloud,hypery2k/owncloud,lahmizzar/owncloud,hypery2k/owncloud,mhtranbn/owncloud,mhtranbn/owncloud,lahmizzar/owncloud,lahmizzar/owncloud,lahmizzar/owncloud,Fmstrat/owncloud,lahmizzar/owncloud,amirshaikh49/owncloud,mhtranbn/owncloud,mhtranbn/owncloud,amirshaikh49/owncloud,hypery2k/owncloud,amirshaikh49/owncloud,Fmstrat/owncloud,Fmstrat/owncloud,Fmstrat/owncloud,amirshaikh49/owncloud,hypery2k/owncloud,hypery2k/owncloud,mhtranbn/owncloud,amirshaikh49/owncloud,hypery2k/owncloud,Fmstrat/owncloud