added support of avatars and facebook fixed sign in etc.