handle OPTIONS method for login and logout views