Fix specs and username fucntion.