Implemented authorization with local and facebook