Added spring security for user authentication and authorization.