updated UserDetailsDaoImpl to read permission