I am creating a rest application using Spring Boot. I\'ve got three logical layers: controller, service, and repository. Where should I check if the given username and simil