modified common methods by modifying assert in login_to_site method