fix model path
use reject instead of reject!
add missing flash messages