second try - committing login improvement