Fixed errors with usermaint controller and related views