checking username and password from DB added at last + spring exception class