added login and register script