index and main now PHP, basic login system implemented