forms layout and logged_in redirect