Added a conditional statement to logging in to destroy any session currently running