finished signin functionality