added login; fixed minor issues with coords
merged changes to login and coord handling