Rewrote authentication, not using devise anymore.