Added flash messages, corrected errors, prepared app for admin panel