member login and register working correctly now