Fixed check for empty fields, enabled sorting on rating box