finished refactoring signup request. Now user needs to sign up with username, email, password, firstName, lastName, phoneNumber, adress_street, adress_zip, adress_city to get an account.
Combined the two payload folders into one.
made sure email and username is not already registered with both "if"-statement in authController and @Indexed(unique) in User model.
Tested in postman:
@Email annotation works.
@Indexed(unique = true) and the if-statement to catch duplicate email/username works.
@Size works on all the fields where it's present.