Added exception for invalid user