finished create lessons action to include user
added login check and redirect for sign_up actions