now closing auth forms when navigating to another page