added client side handling for signup/login, session expire issue with chrome only?