Add login system, still need to do permissions
Fix some small mistakes