Added authentication through spring security.