make login and register wokrs for FF