Refactor

refactors account controller test and account model for authentication and confirmation