fixed registration model to include state
accepted new .gitignore