adds successful log in functionality