adding login and register script