check loginstatus on signup page in the backend instead of the frontend code