finished signin, signout, friend, load data funtion