Created separate model/spec files for authenticate code.