Bug when login was empty fixed.