Added validation for username and email check to signup form.
Added login_attempt, and lock_until to use document structure.
Added login condition for is_locked.
Added config options for lock time and max login attempts.
Added config options for lock time and max login attempts.