[Front-end] Refactored Authentication and sanitize into its own module. More Object Oriented.