Removed nullpointer when changing settings, added denied status instead of null-message on error