login check for writing page.
redirect_to param to go to correct page after logging in.
recording sort.