Added before filters to users controller to handle invalid requests