fixing raise exception
adding captcha at login after a configurable number of failed login attempts