fixed minor stuff with flash.
added flash and error_messages.
changed email to username on registration/session.