Fixed code related issues and moved static queries as constant in userRepository hibernate