Handle login related errors, fix ip address display