changed code for companion log in