Added login procedures