add selector render code
check login on submit
render the current path if set