add validation rules for rest dto
add another test for authentication controller