added port to login
changed port parameter for url
deleted old login2 method