Refactored backend into a factory
Initial basic credential screen