login button now calls correct function