fixing validation and trying to get auth working