Keeps logging out when clicking on a form?