Logging in and out boundry conditions
    but something very strange is going on