Database duplicate username & password handled. Hashed password using spring security bcrypt.