Fixed Crashes

Fixed the crashes for logging in and the daily intake page. Added a
suggested previous weight to the update weight part. Also finished the
calculation section for the daily intake page.